import request from '@/utils/request'

// 查询服务项列表
export function listServiceItem(query) {
  return request({
    url: '/business/ServiceItem/list',
    method: 'get',
    params: query
  })
}

// 查询服务项列表(不支持分页)
export function listServiceItemNoPage(query) {
  return request({
    url: '/business/ServiceItem/listServiceItemNoPage',
    method: 'get',
    params: query
  })
}

// 查询服务项详细
export function getServiceItem(id) {
  return request({
    url: '/business/ServiceItem/' + id,
    method: 'get'
  })
}

// 新增服务项
export function addServiceItem(data) {
  return request({
    url: '/business/ServiceItem',
    method: 'post',
    data: data
  })
}

// 修改服务项
export function updateServiceItem(data) {
  return request({
    url: '/business/ServiceItem',
    method: 'put',
    data: data
  })
}

// 删除服务项
export function updateSaleStatus(id,saleStatus) {
  return request({
    url: '/business/ServiceItem/' + id+'/'+saleStatus,
    method: 'put'
  })
}
// 发布审核按钮
export function QueryServiceItemAuditInfo(query) {
  return request({
    url: '/business/ServiceItem/queryServiceItemAuditInfo',
    method: 'get',
    params: query
  })
}
